<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>jQuery 二级联动</title>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
       $(document).ready(function(){
           $("#province").change(function(){
               $("#province option").each(function(i,o){
                   if($(this).attr("selected"))
                   {
                       $(".ips").hide();
                       $(".ips").attr("name","");
                       $(".ips").eq(i).show();
                       $(".ips").eq(i).attr("name","ips");
                   }
               });
           });
           $("#province").change();
       });
</script>

</head>
<body>

{{test}}
<h3>instance<h3> </p>
{% for instance in test %}
  instance_instancename <li>{{ instance.instancename }}</li>
  instance_name <li>{{ instance.name }}</li>
  {% for NIC in instance.nic %}
     instance_VLAN <li>{{ NIC.isolationuri }}</li>
  	instance_ipaddress <li>{{ NIC.ipaddress}}</li>
  {% endfor %}
{% endfor %}











</body>
</html>